﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;

namespace Cstudy.BLL
{
    public class attachment
    {
        public bool AddAttachment(MODEL.attachment att)
        {
            return new DAL.attachment().AddAttachment(att);
        }

        public bool DeleteAttachment(int fileid)
        {
            return new DAL.attachment().DeleteAttachmentByFileID(fileid);
        }

        public bool UpdateAttachment(MODEL.attachment att)
        {
            return new DAL.attachment().UpdateAttachment(att);
        }

        public DataSet SelectAttachmentByresid(int resID)
        {
            return new DAL.attachment().SelectAttachmentByResID(resID);
        }

        public DataSet SelectAttachmentByFileID(int fileid)
        {
            return new DAL.attachment().SelectAttachmentByFileID(fileid);
        }
    }
}
